A Trilium instance represents a server. If Synchronization is set up, since multiple servers are involved (the one from the desktop client and the one the synchronisation is set up with), sometimes it can be useful to distinguish the instance you are running on.
To set up a name for the instance, modify the config.ini:
[General]
instanceName=Hello
Use api.getInstanceName() to obtain the instance name of the
current server, as specified in the config file or in environment variables.
For a script that is run periodically or on a certain event, it's possible
to limit it to certain instances without having to change the code. Just
add runOnInstance and set as the value the instance name where
the script should run. To run on multiple named instances, simply add the
label multiple times.